package com.farm.dao;

import com.farm.opjo.CropsDisease;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface CropsDiseaseMapper extends Mapper<CropsDisease> {
    @Select ( "select * from t_crops_disease where cid=#{cid}" )
     List<CropsDisease> findByCropsId(int cid);
    @Select ( "select * from t_crops_disease where did=#{did}" )
    CropsDisease findByDiseaseId(int did);
}
